<?php
/**
 * This is LilFloat helper. 
 *
 * @package       lil_float
 * @subpackage    lil_float.views.helpers
 */
/**
 * LilFloatHelper class
 *
 * @uses          Helper
 * @package       lil_float
 * @subpackage    lil_float.views.helpers
 */
class LilFloatHelper extends AppHelper {
/**
 * format method
 *
 * @param mixed $number
 * @param mixed $places
 * @param bool $empty Allow empty strings and do not convert them to zeroes.
 * @access public
 * @return string
 */
	function format($number, $places = 2, $empty = false) {
		App::uses('LilFloatEngine', 'Lil.Lib');
		$lf = LilFloatEngine::getInstance();
		return $lf->format($number, array('places' => $places, 'empty' => $empty));
	}
/**
 * moneySymbol method
 *
 * @access public
 * @return string
 */
	function moneySymbol() {
		App::uses('LilFloatEngine', 'Lil.Lib');
		$lf = LilFloatEngine::getInstance();
		return $lf->moneySymbol();
	}
/**
 * money method
 *
 * @param mixed $number
 * @param mixed $places
 * @param mixed $currency_sign
 * @param bool $empty Allow empty strings and do not convert them to zeroes.
 * @access public
 * @return string
 */
	function money($number, $places = 2, $currency_sign = true, $empty = false) {
		App::uses('LilFloatEngine', 'Lil.Lib');
		$lf = LilFloatEngine::getInstance();
		return $lf->money($number, array(
			'places'       => $places,
			'currencySign' => $currency_sign,
			'empty'        => $empty
		));
	}
}